﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Ekton_Manage_DTO.RequestModels.Menu
{
    public class DtoMenu 
    {
        public int id { get; set; }
        public string name { get; set; }
        public byte? type { get; set; }
        public int pid { get; set; }

        private IList<DtoMenu> _nodes;
        public IList<DtoMenu> nodes
        {
            get
            {
                if (_nodes == null)
                    _nodes = new List<DtoMenu>();
                return _nodes;
            }
            set { _nodes = value; }
        }
        public List<ChildNodes> ChildNodes { get; set; }
    }

    public class ChildNodes
    {
        public int id { get; set; }
        public byte? type { get; set; }
        public string name { get; set; }
        public int pid { get; set; }
        public List<ButtonNodes> ButtonNodes { get; set; }
    }

    public class ButtonNodes
    {
        public int id { get; set; }
        public string name { get; set; }
        public int pid { get; set; }
        public byte? type { get; set; }
    }
}
